﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Sdepci.InfoCode.BLL.Authority;

namespace Sdepci.InfoCode.Web
{
    public partial class Main : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            // 登录状态检测
            if (Session["User"] == null)
            {
                this.Response.Clear();
                this.Response.Write("<script language=\"javascript\">window.top.location.href='Login.aspx';</script>");
                this.Response.End();
            }
            else
            {
                this.hidUserId.Value = (Session["User"] as User).UserId;
            }
        }
    }
}
